home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
MemAllocators.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
173 lines
;
; File: MemAllocators.a
;
; Version: Technology:
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__MEMALLOCATORS__') = 'UNDEFINED' THEN
__MEMALLOCATORS__ SET 1
IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
include 'Types.a'
ENDIF
IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
include 'MixedMode.a'
ENDIF
IF FOR_SYSTEM8_PREEMPTIVE THEN
;
; * NOTE: Callers of the MemAllocators API are gauranteed at least
; * kMemAllocatorAlignment_Minimum alignment of all allocated blocks.
;
kMemAllocatorAlignment_Minimum EQU 2 ; (4 Byte Alignment Gaurantee)
;
; * Handle support
;
;
; extern OSStatus MemNewHandle(MemAllocatorRef inAllocator, ByteCount inSize, Handle *outHandle)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewHandle
ENDIF
;
; extern OSStatus MemNewHandleClear(MemAllocatorRef inAllocator, ByteCount inSize, Handle *outHandle)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewHandleClear
ENDIF
;
; extern OSStatus MemDisposeHandle(Handle *ioHandle)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemDisposeHandle
ENDIF
;
; extern OSStatus MemSizeHandle(ByteCount inSize, Handle inHandle)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemSizeHandle
ENDIF
;
; extern OSStatus MemGetHandleSize(Handle inHandle, ByteCount *outSize)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemGetHandleSize
ENDIF
;
; * Fixed block support
;
;
; extern OSStatus MemNewFixed(MemAllocatorRef inAllocator, ByteCount inSize, void **outMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewFixed
ENDIF
;
; extern OSStatus MemNewFixedClear(MemAllocatorRef inAllocator, ByteCount inSize, void **outMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewFixedClear
ENDIF
; inAlignment must be in the range 0..31
;
; extern OSStatus MemNewFixedAligned(MemAllocatorRef inAllocator, ByteCount inSize, UInt32 inAlignment, void **outMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewFixedAligned
ENDIF
; inAlignment must be in the range 0..31
;
; extern OSStatus MemNewFixedAlignedClear(MemAllocatorRef inAllocator, ByteCount inSize, UInt32 inAlignment, void **outMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewFixedAlignedClear
ENDIF
;
; extern OSStatus MemDisposeFixed(MemAllocatorRef inAllocator, ByteCount inSize, void **ioMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemDisposeFixed
ENDIF
;
; * Convenience macros
;
;
; * Variable block support
;
;
; extern OSStatus MemNewVariable(MemAllocatorRef inAllocator, ByteCount inSize, void **outMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewVariable
ENDIF
;
; extern OSStatus MemNewVariableClear(MemAllocatorRef inAllocator, ByteCount inSize, void **outMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemNewVariableClear
ENDIF
;
; extern OSStatus MemDisposeVariable(MemAllocatorRef inAllocator, void **ioMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemDisposeVariable
ENDIF
;
; extern OSStatus MemGetVariableSize(MemAllocatorRef inAllocator, void *inMemory, ByteCount *outSize)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemGetVariableSize
ENDIF
;
; extern OSStatus MemSizeVariable(MemAllocatorRef inAllocator, ByteCount inSize, void **ioMemory)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemSizeVariable
ENDIF
;
; * Debugging Support
;
;
; extern OSStatus MemCheckAllocator(MemAllocatorRef inAllocator)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemCheckAllocator
ENDIF
;
; extern OSStatus MemForceFailure(MemAllocatorRef inAllocator, OSStatus inForceFailure)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION MemForceFailure
ENDIF
ENDIF
ENDIF ; __MEMALLOCATORS__